<?php

namespace App\Models\Assets;

use App\Models\BaseModel;

class AccountingModel extends BaseModel
{
    protected $table = 'accounting';


    const TYPE_INCOME  = 1;
    const TYPE_EXPENSE = 0;
    const TYPES        = [
        self::TYPE_INCOME  => '收入',
        self::TYPE_EXPENSE => '支出',
    ];

    protected $fillable = [
        'user_id',
        'type',
        'amount',
        'refund',
        'description',
        'account_id',
        'icon',
        'created_at',
        'updated_at'
    ];

}
